package ar.uba.fi.tonyvaliente.documents;

import java.util.Iterator;
import java.util.List;

import ar.uba.fi.tonyvaliente.documents.exception.QueryException;
import ar.uba.fi.tonyvaliente.signature.files.SignatureIndexException;

public abstract class Index {

	public Index() {
		super();
	}

	//public abstract Iterator<String> getTermsIterator();

	public abstract void add(Object term, int documentId) throws Exception;

	public abstract List<Integer> getDocuments(String term) throws QueryException;

	public abstract void close();

	public abstract void open();

	public abstract void initialize(int keys);


}